/*
 * This file is part of aion-engine <aion-engine.com>
 *
 * aion-engine is private software: you can redistribute it and or modify
 * it under the terms of the GNU Lesser Public License as published by
 * the Private Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * aion-engine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser Public License for more details.
 *
 * You should have received a copy of the GNU Lesser Public License
 * along with aion-engine.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.aionengine.gameserver.world.geo;

import com.aionengine.gameserver.geoEngine.math.Vector3f;
import com.aionengine.gameserver.geoEngine.models.GeoMap;
import com.aionengine.gameserver.geoEngine.scene.Spatial;

/**
 * @author ATracer
 */
public class DummyGeoMap extends GeoMap {

    public DummyGeoMap(String name, int worldSize) {
        super(name, worldSize);
    }

    @Override
    public final float getZ(float x, float y, float z, int instanceId) {
        return z;
    }

    @Override
    public final boolean canSee(float x, float y, float z, float targetX, float targetY, float targetZ, float limit, int instanceId) {
        return true;
    }

    @Override
    public Vector3f getClosestCollision(float x, float y, float z, float targetX, float targetY, float targetZ,
                                        boolean changeDirction, boolean fly, int instanceId, byte intentions) {
        return new Vector3f(targetX, targetY, targetZ);
    }

    @Override
    public void setDoorState(int instanceId, String name, boolean state) {

    }


    @Override
    public int attachChild(Spatial child) {
        return 0;
    }
}
